home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / !applications! / iconian2.97 / install < prev    next >
Text File  |  1996-09-07  |  6KB  |  240 lines

  1. (SET @default-dest "Sys:")
  2. (SET default_lang 0)
  3.  
  4. (SET #needKick ("\n'Iconian' needs Kickstart Version 39 at least." ) )
  5.  
  6. (SET #startMsg ("\nWelcome to 'Iconian'\n\nThis script installs 'Iconian' on your Amiga.\n") )
  7.  
  8. (SET #destPrompt "Please choose the destination directory for 'Iconian'.\nA drawer will NOT be created.")
  9.  
  10. (SET #copyPFiles "Copying program files...")
  11.  
  12. (SET #DocPrompt "Select the directory for the documentation file.")
  13.  
  14. (SET #exitMsg ("Hope you enjoy using 'Iconian'.") )
  15.  
  16.  
  17. (if (< (/ (GETVERSION) 65536) 39)
  18.     (ABORT #needKick)
  19. )
  20.  
  21. (MESSAGE #startMsg)
  22.  
  23. (SET @default-dest
  24.     (ASKDIR (PROMPT  #destPrompt)
  25.             (HELP    askdir-help)
  26.             (DEFAULT @default-dest )))
  27.  
  28. (COPYFILES (SOURCE "Iconian")
  29.            (HELP copyfiles-help)
  30.            (DEST @default-dest )
  31.            (INFOS)
  32. )
  33.  
  34. (SET @DocDir
  35.     (ASKDIR (PROMPT  #DocPrompt)
  36.             (HELP    askdir-help)
  37.             (DEFAULT "Help:")
  38.             (NEWPATH)
  39.     )
  40. )
  41.  
  42.   
  43. (COPYFILES (SOURCE "Iconian_help.guide")
  44.            (DEST   @DocDir)
  45.            (HELP copyfiles-help)
  46.            (INFOS)
  47. )
  48.  
  49. (set classdir @default-dest)
  50. (set gaddir (tackon @default-dest "gadgets"))
  51.  
  52. (set foundclass 0)
  53. (if (exists "classes:" (NOREQ))
  54.     (
  55.         (set foundclass 1)
  56.          (set classdir "classes:")
  57.          (set gaddir "classes:gadgets")
  58.     )
  59. )
  60. (if (= foundclass 0)
  61.     (if (exists "sys:classes" (NOREQ))
  62.         (
  63.             (set foundclass 1)
  64.           (set classdir "sys:classes")
  65.           (set gaddir "sys:classes/gadgets")
  66.       )
  67.     )
  68. )
  69. (if (= foundclass 0)
  70.     (
  71.         (if (exists "libs:classes" (NOREQ))
  72.             (
  73.                 (set classdir "libs:classes")
  74.                 (set gaddir "libs:classes/gadgets")
  75.             )
  76.         )
  77.     )
  78. )
  79. (set chunky (tackon classdir "chunkyimage.class"))
  80. (set complex (tackon classdir "compleximage.class"))
  81. (set gauge (tackon classdir "gaugeimage.class"))
  82. (set popup (tackon gaddir "pop.gadget"))
  83. (set doloaddt (tackon "LIBS:" "doloaddt.library"))
  84.  
  85. (set neednew 1)
  86. (if (exists chunky (NOREQ))
  87.     (
  88.         (set existvernum (getversion chunky))
  89.         (set newvernum (getversion "classes/chunkyimage.class"))
  90.         (if (< newvernum existvernum)
  91.             (
  92.                 (if    (NOT (askbool
  93.                                         (prompt ("The existing chunkyimage.class is a newer version.\n\nDo you wish to replace it?"))
  94.                                         (default 0)
  95.                                         (help "A newer revision of the chunkyimage.class is already installed on your system.  Selecting Yes to overwrite the existing class may cause incompatibilities with other programs that rely on chunkyimage.class.")
  96.                         )
  97.                     )
  98.                     (
  99.                         (set neednew 0)
  100.                     )
  101.                 )
  102.             )
  103.         )
  104.     )
  105. )
  106. (if (= neednew 1)
  107.     (
  108.         (COPYFILES (SOURCE "classes/chunkyimage.class")
  109.         (HELP copyfiles-help)
  110.       (DEST classdir)
  111.       (INFOS)
  112.         )
  113.     )
  114. )
  115.  
  116. (set neednew 1)
  117. (if (exists complex (NOREQ))
  118.     (
  119.         (set existvernum (getversion complex))
  120.         (set newvernum (getversion "classes/compleximage.class"))
  121.         (if (< newvernum existvernum)
  122.             (
  123.                 (if    (NOT (askbool
  124.                                         (prompt ("The existing compleximage.class is a newer version.\n\nDo you wish to replace it?"))
  125.                                         (default 0)
  126.                                         (help "A newer revision of the compleximage.class is already installed on your system.  Selecting Yes to overwrite the existing class may cause incompatibilities with other programs that rely on compleximage.class.")
  127.                         )
  128.                     )
  129.                     (
  130.                         (set neednew 0)
  131.                     )
  132.                 )
  133.             )
  134.         )
  135.     )
  136. )
  137. (if (= neednew 1)
  138.     (
  139.         (COPYFILES (SOURCE "classes/compleximage.class")
  140.         (HELP copyfiles-help)
  141.       (DEST classdir)
  142.       (INFOS)
  143.         )
  144.     )
  145. )
  146.  
  147. (set neednew 1)
  148. (if (exists gauge (NOREQ))
  149.     (
  150.         (set existvernum (getversion gauge))
  151.         (set newvernum (getversion "classes/gaugeimage.class"))
  152.         (if (< newvernum existvernum)
  153.             (
  154.                 (if    (NOT (askbool
  155.                                         (prompt ("The existing gaugeimage.class is a newer version.\n\nDo you wish to replace it?"))
  156.                                         (default 0)
  157.                                         (help "A newer revision of the gaugeimage.class is already installed on your system.  Selecting Yes to overwrite the existing class may cause incompatibilities with other programs that rely on gaugeimage.class.")
  158.                         )
  159.                     )
  160.                     (
  161.                         (set neednew 0)
  162.                     )
  163.                 )
  164.             )
  165.         )
  166.     )
  167. )
  168. (if (= neednew 1)
  169.     (
  170.         (COPYFILES (SOURCE "classes/gaugeimage.class")
  171.         (HELP copyfiles-help)
  172.       (DEST classdir)
  173.       (INFOS)
  174.         )
  175.     )
  176. )
  177.  
  178. (set neednew 1)
  179. (if (exists popup (NOREQ))
  180.     (
  181.         (set existvernum (getversion popup))
  182.         (set newvernum (getversion "gadgets/pop.gadget"))
  183.         (if (< newvernum existvernum)
  184.             (
  185.                 (if    (NOT (askbool
  186.                                         (prompt ("The existing pop.gadget is a newer version.\n\nDo you wish to replace it?"))
  187.                                         (default 0)
  188.                                         (help "A newer revision of the pop.gadget is already installed on your system.  Selecting Yes to overwrite the existing gadget may cause incompatibilities with other programs that rely on pop.gadget.")
  189.                         )
  190.                     )
  191.                     (
  192.                         (set neednew 0)
  193.                     )
  194.                 )
  195.             )
  196.         )
  197.     )
  198. )
  199. (if (= neednew 1)
  200.     (
  201.         (COPYFILES (SOURCE "gadgets/pop.gadget")
  202.         (HELP copyfiles-help)
  203.       (DEST gaddir)
  204.       (INFOS)
  205.         )
  206.     )
  207. )
  208.  
  209. (set neednew 1)
  210. (if (exists doloaddt (NOREQ))
  211.     (
  212.         (set existvernum (getversion doloaddt))
  213.         (set newvernum (getversion "libs/doloaddt.library"))
  214.         (if (< newvernum existvernum)
  215.             (
  216.                 (if    (NOT (askbool
  217.                                         (prompt ("The existing doloaddt.library is a newer version.\n\nDo you wish to replace it?"))
  218.                                         (default 0)
  219.                                         (help "A newer revision of the doloaddt.library is already installed on your system.  Selecting Yes to overwrite the existing gadget may cause incompatibilities with other programs that rely on doloaddt.library.")
  220.                         )
  221.                     )
  222.                     (
  223.                         (set neednew 0)
  224.                     )
  225.                 )
  226.             )
  227.         )
  228.     )
  229. )
  230. (if (= neednew 1)
  231.     (
  232.         (COPYFILES (SOURCE "libs/doloaddt.library")
  233.         (HELP copyfiles-help)
  234.       (DEST "LIBS:")
  235.       (INFOS)
  236.         )
  237.     )
  238. )
  239. (Exit #exitMsg)
  240.